package com.science.slam.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName like_table
 */
@TableName(value ="like_table")
@Data
public class LikeTable implements Serializable {
    /**
     * 主键
     */
    @TableId
    private String id;

    /**
     * 点赞用户id
     */
    private String userId;

    /**
     * 被点赞作品id
     */
    private String fileId;

    /**
     * 点赞时间
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public LikeTable(String id, String userId, String fileId) {
        this.id = id;
        this.userId = userId;
        this.fileId = fileId;
    }
}